let obj = {
    age:18,
    name:'csc'
}
console.log(obj.hasOwnProperty('age'));
console.log(Object.hasOwn(obj, 'key'));